package com.borrowed.book.book.service;

import com.borrowed.book.book.domain.SShippingAddress;
import com.borrowed.book.system.domain.AjaxResult;
import com.borrowed.book.system.domain.Province;

import java.io.FileNotFoundException;
import java.io.UnsupportedEncodingException;
import java.util.List;

public interface UserAddressService {
    List<Province> getProvinces() ;

    AjaxResult addShippingAddress(SShippingAddress address);

    void deleteShippingAddressById(Long id);

    /**
     * 更新收获地址
     * @param address
     */
    void updateShippingAddressById(SShippingAddress address);

    /**
     * 根据当前登录用户查询收件地址
     * @return
     */
    List<SShippingAddress>  selectShippingAddressList();
}
